/*
 * @Author: cgl
 * @Date: 2023-04-20 09:49:21
 * @LastEditors: cgl
 * @LastEditTime: 2023-04-20 15:44:50
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\person\person.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询委托单位放射工作人员信息列表
export function entrustWorkingPersonnelList(data) {
  return request({
    url: '/basic/entrust/workingPersonnel/list',
    method: 'post',
    data,
  })
}
// 导出委托单位放射工作人员信息列表
export function entrustWorkingPersonnelExport(data) {
  return request({
    url: `/basic/entrust/workingPersonnel/export`,
    method: "post",
    data,
  });
}
// 获取委托单位放射工作人员信息详细信息
export function entrustWorkingPersonnelDetail(personnelId) {
  return request({
    url: '/basic/entrust/workingPersonnel/' + personnelId,
    method: 'get'
  })
}
// 下载模板
export function downloadTemplate(data) {
  return request({
    url: `/basic/entrust/workingPersonnel/downloadTemplate`,
    method: "post",
    data,
  });
}
// 新增委托单位放射工作人员信息
export function entrustWorkingPersonnelAdd(data) {
  return request({
    url: `/basic/entrust/workingPersonnel/add`,
    method: "post",
    data,
  });
}
// 导入数据
export function importData(data) {
  return request({
    url: `/basic/entrust/workingPersonnel/importData`,
    method: "post",
    data,
  });
}
// 修改委托单位放射工作人员信息
export function entrustWorkingPersonnelEdit(data) {
  return request({
    url: '/basic/entrust/workingPersonnel/edit',
    method: 'post',
    data,
  })
}
// 删除委托单位放射工作人员信息
export function entrustWorkingPersonnelDelete(personnelId) {
  return request({
    url: '/basic/entrust/workingPersonnel/delete/' + personnelId,
    method: 'get'
  })
}
// 删除委托单位放射工作人员信息
export function entrustWorkingPersonnelAllDelete(data) {
  return request({
    url: '/basic/entrust/workingPersonnel/delete',
    method: 'delete',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data
  })
}

// 根据剂量计编号获取应检人员
export function listByDosageNumber(dosageNumber) {
  return request({
    url: '/basic/entrust/workingPersonnel/listByDosageNumber/' + dosageNumber,
    method: 'get'
  })
}

// 查询委托单位分页列表
export function allocatedList(params) {
	return request({
		url: `/system/role/authUser/allocatedList`,
		method: 'get',
		params: params,
	})
}
